package com.threeStepTech.test.service.base;

import org.apache.log4j.Logger;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import redis.clients.jedis.ShardedJedis;

/**
 * 一个单元测试父类, 初始化一些公用属性
 */
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@ContextConfiguration(locations = { "classpath:server-config/spring-context.xml" })
public class ServiceTestBase {

	protected Logger logger = Logger.getLogger(this.getClass());

	@Autowired
	@Qualifier("shardedJededis")
	protected ShardedJedis shardJededis;

	

}
